package seckill

// SeckillProduct 秒杀商品表
type SeckillProduct struct {
	global.BaseModel
	ActivityId int32 `json:"activityId" gorm:"column=activity_id;comment:活动id"`

	ProductId int32 `json:"productId" gorm:"column=product_id;comment:商品id"`

	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户Id"`

	Image string `json:"image" gorm:"column=image;comment:商品图片"`

	FlatPattern string `json:"flatPattern" gorm:"column=flat_pattern;comment:展示图"`

	SliderImage string `json:"sliderImage" gorm:"column=slider_image;comment:轮播图"`

	Name string `json:"name" gorm:"column=name;comment:商品名称"`

	Intro string `json:"intro" gorm:"column=intro;comment:商品简介"`

	Keyword string `json:"keyword" gorm:"column=keyword;comment:关键字,英文逗号拼接"`

	BrandId int32 `json:"brandId" gorm:"column=brand_id;comment:品牌id"`

	CategoryId int32 `json:"categoryId" gorm:"column=category_id;comment:平台分类id"`

	GuaranteeIds string `json:"guaranteeIds" gorm:"column=guarantee_ids;comment:保障服务ids(英文逗号拼接)"`

	Price big.Float `json:"price" gorm:"column=price;comment:商品价格"`

	SeckillPrice big.Float `json:"seckillPrice" gorm:"column=seckill_price;comment:秒杀价格"`

	UnitName string `json:"unitName" gorm:"column=unit_name;comment:单位名"`

	Sales int32 `json:"sales" gorm:"column=sales;comment:销量"`

	TempId int32 `json:"tempId" gorm:"column=temp_id;comment:运费模板ID"`

	Sort int32 `json:"sort" gorm:"column=sort;comment:排序"`

	SpecType bool `json:"specType" gorm:"column=spec_type;comment:规格 0单 1多"`

	IsShow bool `json:"isShow" gorm:"column=is_show;comment:状态（0：未上架，1：上架）"`

	AuditStatus int32 `json:"auditStatus" gorm:"column=audit_status;comment:审核状态：1-待审核，2-审核成功，3-审核拒绝"`

	Reason string `json:"reason" gorm:"column=reason;comment:拒绝原因"`

	QuotaShow int32 `json:"quotaShow" gorm:"column=quota_show;comment:限购总数显示.不变"`

	Quota int32 `json:"quota" gorm:"column=quota;comment:限购总数,随减"`
}
